<template>
  <el-dialog
    class="eldialog el-dialog-m0"
    :visible.sync="visible"
    :title="title"
    :close-on-click-modal="false"
    append-to-body
    top="2vh"
    width="100%"
    style="height:100%"
    :close-on-press-escape="false"
    element-loading-text="数据加载中"
    v-loading="loading"
  >
    <el-row style=" background: #fff;height: 50px" class="pt-2 pb-2 pl-3 pr-3">
      <el-col :span="24">
        <div style="float: left;margin-left: 10px">
          <el-form :inline="true" :model="task" class="demo-form-inline">
            <el-form-item label="填报人姓名" prop="commitName">
              <el-input disabled v-model="task.commitName"></el-input>
            </el-form-item>
            <el-form-item label="填报人职务" prop="commitJob">
              <el-input disabled v-model="task.commitJob"></el-input>
            </el-form-item>
            <el-form-item label="填报人座机号" prop="commitFixedNum">
              <el-input disabled v-model="task.commitFixedNum"></el-input>
            </el-form-item>
            <el-form-item label="填报人手机号" prop="commitPhoneNum">
              <el-input disabled v-model="task.commitPhoneNum"></el-input>
            </el-form-item>
          </el-form>
        </div>
        <div style="float: right;">
          <el-button style="margin-right: 30px;margin-top: -10px" type="primary"  plain @click="downZip"
          >&nbsp;导出<i class="el-icon-upload el-icon--right"></i>
          </el-button>
          <el-button style="margin-right: 30px;margin-top: -10px" type="primary" icon="el-icon-s-promotion" plain
                     @click="updateResults()" v-if="role === '系统管理员'" :disabled="shztGhb === '1'">&nbsp;审核完成
          </el-button>
        </div>
      </el-col>
    </el-row>
    <el-row style=" background: #fff;height: 580px; margin-top: 5px;" class="pt-2 pb-2 pl-3 pr-3" v-loading="loading">
      <vxe-table
          border
          stripe
          :height="winHeight"
          :align="allAlign='center'"
          :data="infoData"
          :span-method="arraySpanMethod"
          :cell-style="cellStyle"
          :cell-class-name="cellClassName"
          highlight-current-row
          :row-config="{isCurrent: true}"
          @cell-click="handleCurrentChange"
      >
        <vxe-column  title="指标项目"  width="5%">
          <template #default="{ row }">
            <span v-html="row.zbxm"></span>
          </template>
        </vxe-column>
        <vxe-column  title="评估内容"  width="5%" >
          <template #default="{ row }">
            <span v-html="row.pgnr"></span>
          </template>
        </vxe-column>
        <vxe-column title="评估标准" width="15%" >
          <template #default="{ row }">
            <!-- 如果是特殊情况说明，显示input框 -->
            <span v-if="row.pgbzId == '999'">
              <el-input type="textarea" :rows="3" v-model="row.tsqksm" placeholder="暂无特殊情况说明" :disabled="true"></el-input>
            </span>
            <span v-if="row.pgbzId != '999' && row.pgbzId != '9999'" v-html="row.pgbz"></span>
          </template>
        </vxe-column>
        <vxe-column title="工作进展" width="15%">
          <template #default="{ row }">
            <span v-if="row.pgbzId != '999' && row.pgbzId != '9999'">
              <el-input v-if="row.columnType == '1' && row.pgbzId != '6'"
                        v-model="row.gzjz" placeholder="暂无工作进展"
                        type="textarea" :rows="3" autosize :disabled="true">
              </el-input>

              <span v-else-if="row.columnType == '1' && row.pgbzId == '6'">
                <div style="font-size: 18px;font-weight: 800;">年初制定</div>
                <el-link v-if="role === '系统管理员'" type="primary" @click="showPbtsjh(shztGhb,'2')">配备提升计划表</el-link>
                <el-link v-else type="primary" @click="showPbtsjh(shztGhb,'1')">配备提升计划表</el-link>
              </span>
            </span>
            <span v-if="row.pgbzId == '9999'">
              {{scores.hjzf}}
            </span>
            <span v-if="row.columnType == '2' && row.pgbzId == '8'">
              <div  v-if="list1 != ''">特色创新做法附件：
                <div v-for="(item,i) in list1.fileMc" :key="i" style="margin-bottom: 5px">
                      <el-link   type="primary" @click.stop="showFile(list1.fileUrl[i])">
                        {{i + 1}} 、 {{item}}
                      </el-link>
                    </div>
                </div>
                <div v-if="list1 == ''">
                暂无附件上传
              </div>
            </span>
            <span style="display: flex;justify-content: center;" v-if="row.columnType == '4' && row.pgbzId == '9'">
              <div style="margin-right:10px;"  v-if="list2 != ''">上传年度干部选拔名单表格附件：
                <div v-for="(item,i) in list2.fileMc" :key="i" style="margin-bottom: 5px">
                      <el-link   type="primary" @click.stop="showExeclFile(list2.fileUrl[i])">
                        {{i + 1}} 、 {{item}}
                      </el-link>
                    </div>
                </div>
                <div v-if="list2 == ''">
                暂无附件上传
              </div>
              <div  style="margin-left:10px;" v-if="list3 != ''">上传年度干部选拔名单盖章扫描件附件：
                <div v-for="(item,i) in list3.fileMc" :key="i" style="margin-bottom: 5px">
                      <el-link   type="primary" @click.stop="showFile(list3.fileUrl[i])">
                        {{i + 1}} 、 {{item}}
                      </el-link>
                    </div>
                </div>
                <div v-if="list3 == ''">
                暂无附件上传
              </div>
            </span>
          </template>
        </vxe-column>
        <vxe-column  title="证明材料" width="15%">
          <template #default="{ row }">
            <span v-if="row.pgbzId != '999' && row.pgbzId != '9999'">
              <span v-if="row.columnType == '1' && row.pgbzId != '6'">
                <div v-if="row.fileMc.length != 0">附件：
                  <div v-for="(item,i) in row.fileMc" style="margin-bottom: 5px">
                    <el-link type="primary" @click="showFile(row.fileUrl[i])">
                      {{i + 1}} 、 {{item}}
                    </el-link>
                  </div>
                </div>
                <div v-if="row.fileMc.length == 0">
                暂无附件上传
              </div>
              </span>
              <span v-else-if="row.columnType == '1' && row.pgbzId == '6'">
                <div style="font-size: 18px;font-weight: 800;">年中统计</div>
                <el-link v-if="role === '系统管理员'" type="primary" @click="showTjqktj(shztGhb,'2')">推进情况统计表</el-link>
                <el-link v-else type="primary" @click="showTjqktj(shztGhb,'1')">推进情况统计表</el-link>
              </span>
            </span>
          </template>
        </vxe-column>
        <vxe-column title="单项分值" width="10%">
          <template #default="{ row }">
            <span v-if="row.pgbzId != '999' && row.pgbzId != '9999'">
              <span v-if="row.columnType == '1' && row.pgbzId != '6' && row.pgbzId != '7'"
                    v-html="'-'+row.fxjf"></span>
              <span v-if="row.columnType == '1' && row.pgbzId != '6' && row.pgbzId == '7'"
                    v-html="'+'+row.fxjf"></span>
              <span v-else-if="row.columnType == '1' && row.pgbzId == '6'">
                <div style="font-size: 18px;font-weight: 800;">年底评估</div>
                <el-link v-if="role === '系统管理员'" type="primary" @click="showWcqktj(shztGhb,'2')">完成情况统计表</el-link>
                <el-link v-else type="primary" @click="showWcqktj(shztGhb,'1')">完成情况统计表</el-link>
              </span>
            </span>
            <span v-else>

            </span>
          </template>
        </vxe-column>
        <vxe-column title="操作" width="10%" >
          <template #default="{ row }">
            <span v-if="row.gzjz != '' && shztGhb !== '1' && row.pgbzId != '999'  &&  row.pgbzId != '9999'  &&  row.pgbzId != '6'">
              <span v-if="role === '系统管理员'">
                <div><el-button @click="auditTypeClick(1,'审核通过',row)" type="primary" size="mini" plain :disabled="row.shzt === '1'||row.shzt === '5'">审核通过</el-button></div>
                <div style="padding: 4px 0px 2px 0px"><el-button @click="auditTypeClick(2,'退回修改',row)" type="primary" size="mini" plain :disabled="row.shzt === '1'||row.shzt === '5'">退回修改</el-button></div>
                <div style="padding: 2px 0px 4px 0px"><el-button @click="auditTypeClick(3,'补充材料',row)" type="primary" size="mini" plain :disabled="row.shzt === '1'||row.shzt === '5'">补充材料</el-button></div>
                <div><el-button style="letter-spacing:4px" @click="auditTypeClick(5,'审核不通过',row)" type="primary" size="mini" plain :disabled="row.shzt === '1'||row.shzt === '5'">不通过</el-button></div>
              </span>
              <span v-else-if="role !== '系统管理员'">
                <div><el-button @click="auditTypeClick(2,'退回修改',row)" type="primary" size="mini" plain :disabled="row.shzt === '1'||row.shzt === '5'">退回修改</el-button></div>
                <div style="padding: 10px 0px 10px 0px"><el-button @click="auditTypeClick(3,'补充材料',row)" type="primary" size="mini" plain :disabled="row.shzt === '1'||row.shzt === '5'">补充材料</el-button></div>
                <div><el-button style="letter-spacing:4px" @click="auditTypeClick(5,'审核不通过',row)" type="primary" size="mini" plain :disabled="row.shzt === '1'||row.shzt === '5'">不通过</el-button></div>
              </span>
            </span>
            <span v-else-if="row.gzjz == ''&& row.pgbzId != '999'  &&  row.pgbzId != '9999'  &&  row.pgbzId != '6' && row.pgbzId != '8' && row.pgbzId != '9'">
              <div>暂无上报数据</div>
            </span>
            <span v-else-if="shztGhb === '1'&& row.pgbzId != '999'  &&  row.pgbzId != '9999'  &&  row.pgbzId != '6' && row.pgbzId != '8' && row.pgbzId != '9'">
              <div>审核完成</div>
              <div>操作锁定</div>
            </span>
          </template>
        </vxe-column>
        <vxe-column width="10%" title="审核状态">
          <template #default="{ row }">
            <span v-if="row.pgbzId != '999' && row.pgbzId != '9999'">
              <span  v-if="row.columnType == '1' && row.pgbzId != '6'">
                <p v-if="row.shzt == '1'" style="font-size: 16px;font-weight: 800;color: green;">
                  审核通过
                </p>
                <p v-else-if="row.shzt == '0'" style="font-size: 16px;font-weight: 800;color: red;">
                  待审核
                </p>
                <p v-else-if="row.shzt == '2'"  style="font-size: 16px;font-weight: 800;color: red;">
                  退回修改
                </p>
                <p v-else-if="row.shzt == '3'"  style="font-size: 16px;font-weight: 800;color: red;">
                  补充材料
                </p>
                <p v-else-if="row.shzt == '5'"  style="font-size: 16px;font-weight: 800;color: red;">
                  不通过
                </p>
              </span>
              <span v-else-if="row.columnType == '1' && row.pgbzId == '6'"></span>
            </span>
          </template>
        </vxe-column>
        <vxe-column title="自评分值" width="5%" >
          <template #default="{ row }">
            <span v-if="row.pgbzId != '999' && row.pgbzId != '9999'">
              <span v-if="row.pgbzId != '6'" v-html="row.zpfz"></span>
              <span v-if="row.pgbzId == '6'">按照年底汇总情况得分</span>
            </span>
            <span v-if="row.pgbzId == '999' ">
              <div v-if="row.fileMc.length != 0" align="left">附件：
                <div v-for="(item,i) in row.fileMc" style="margin-bottom: 5px">
                  <el-link type="primary" @click="showFile(row.fileUrl[i])">
                    {{i + 1}} 、 {{item}}
                  </el-link>
                </div>
              </div>
              <div v-if="row.fileMc.length == 0" align="left">
                暂无附件上传
              </div>
            </span>
          </template>
        </vxe-column>
        <vxe-column width="10%" title="审核分值">
          <template #default="{ row }">
            <span v-if="row.pgbzId != '999' && row.pgbzId != '9999'">
              <el-input :disabled="shztGhb === '1' || role !== '系统管理员'" v-if="row.pgbzId == '1' || row.pgbzId == '2' "
                        v-model="s.s1" placeholder="请输入审核分值" maxlength="5" oninput="value = value.match(/^\d*(\.?\d{0,2})/g)[0]">
              </el-input>
              <el-input :disabled="shztGhb === '1' || role !== '系统管理员'" v-if="row.pgbzId == '3' || row.pgbzId == '4' || row.pgbzId == '5' "
                        v-model="s.s2" placeholder="请输入审核分值" maxlength="5" oninput="value = value.match(/^\d*(\.?\d{0,2})/g)[0]">
              </el-input>
              <el-input :disabled="shztGhb === '1' || role !== '系统管理员'" v-if="row.pgbzId == '6'"
                        v-model="s.s3" placeholder="请输入审核分值" maxlength="5" oninput="value = value.match(/^\d*(\.?\d{0,2})/g)[0]">
              </el-input>
              <el-input :disabled="shztGhb === '1' || role !== '系统管理员'" v-if="row.pgbzId == '7'"
                        v-model="s.s4" placeholder="请输入审核分值" maxlength="5" oninput="value = value.match(/^\d*(\.?\d{0,2})/g)[0]">
              </el-input>
            </span>
          </template>
        </vxe-column>
      </vxe-table>
    </el-row>
    <archiveFile-show ref="dialogarchiveFile"/>
    <pbtsjhTable-sz ref="dialogpbtsjhTableSz"/>
    <pbtsjhTable-ds ref="dialogpbtsjhTableDs"/>
    <wcqktjTable-sz ref="dialogwcqktjTableSz"/>
    <wcqktjTable-ds ref="dialogwcqktjTableDs"/>
    <tjqktjTable-sz ref="dialogtjqktjTableSz"/>
    <tjqktjTable-ds ref="dialogtjqktjTableDs"/>
    <pbtsjhTable2023-ds ref="dialogpbtsjhTableDs2023"/>
    <wcqktjTable2023-ds ref="dialogwcqktjTableDs2023"/>
    <tjqktjTable2023-ds ref="dialogtjqktjTableDs2023"/>
    <pbtsjhTable2023-sz ref="dialogpbtsjhTableSz2023"/>
    <wcqktjTable2023-sz ref="dialogwcqktjTableSz2023"/>
    <tjqktjTable2023-sz ref="dialogtjqktjTableSz2023"/>
    <wcqktjTable2023-sg ref="dialogwcqktjTableSg2023"/>
    <tjqktjTable2023-sg ref="dialogtjqktjTableSg2023"/>
    <pbtsjhTable2023-sg ref="dialogpbtsjhTableSg2023"/>
    <!-- 年初地市 -->
    <pbtsjhTable2024-ds ref="dialogpbtsjhTableDs2024"/>
    <!-- 年初省直 -->
    <pbtsjhTable2024-sz ref="dialogpbtsjhTableSz2024"/>
    <!-- 年初省管 -->
    <pbtsjhTable2024-sg ref="dialogpbtsjhTableSg2024"/>
  </el-dialog>
</template>

<script>
  import {getFillingData,getFillingData2024,updateResults,auditTypeClick} from '@/api/young/evaluation/infoAudit/infoAudit.js'
  import {downExecl,downExecl2024} from '@/api/young/evaluation/infoFilling/infoFilling.js'
  import webapp from "@/config/webapp";
  import store from '@/store'
  import archiveFileShow from '@/views/young/evaluation/archiveFile'
  import pbtsjhTableSz from '@/views/young/evaluation/infoFilling/pbtsjhTable_sz'
  import pbtsjhTableDs from '@/views/young/evaluation/infoFilling/pbtsjhTable_ds'
  import wcqktjTableSz from '@/views/young/evaluation/infoFilling/wcqktjTable_sz'
  import wcqktjTableDs from '@/views/young/evaluation/infoFilling/wcqktjTable_ds'
  import tjqktjTableSz from '@/views/young/evaluation/infoFilling/tjqktjTable_sz'
  import tjqktjTableDs from '@/views/young/evaluation/infoFilling/tjqktjTable_ds'
  import pbtsjhTableDs2023 from '@/views/young/evaluation/infoFilling/pbtsjhTable2023_ds'
  import wcqktjTableDs2023 from '@/views/young/evaluation/infoFilling/wcqktjTable2023_ds'
  import tjqktjTableDs2023 from '@/views/young/evaluation/infoFilling/tjqktjTable2023_ds'
  import pbtsjhTableSz2023 from '@/views/young/evaluation/infoFilling/pbtsjhTable2023_sz'
  import wcqktjTableSz2023 from '@/views/young/evaluation/infoFilling/wcqktjTable2023_sz'
  import tjqktjTableSz2023 from '@/views/young/evaluation/infoFilling/tjqktjTable2023_sz'
  import wcqktjTableSg2023 from '@/views/young/evaluation/infoFilling/wcqktjTable2023_sg'
  import tjqktjTableSg2023 from '@/views/young/evaluation/infoFilling/tjqktjTable2023_sg'
  import pbtsjhTableSg2023 from '@/views/young/evaluation/infoFilling/pbtsjhTable2023_sg'

  import pbtsjhTableDs2024 from '@/views/young/evaluation/infoFilling/pbtsjhTable2024_ds'
  import pbtsjhTableSz2024 from '@/views/young/evaluation/infoFilling/pbtsjhTable2024_sz'
  import pbtsjhTableSg2024 from '@/views/young/evaluation/infoFilling/pbtsjhTable2024_sg'
  export default {
    name: "auditDetails",
    components: {
      'archiveFile-show': archiveFileShow,
      'pbtsjhTable-sz': pbtsjhTableSz,
      'pbtsjhTable-ds': pbtsjhTableDs,
      'wcqktjTable-sz': wcqktjTableSz,
      'wcqktjTable-ds': wcqktjTableDs,
      'tjqktjTable-sz': tjqktjTableSz,
      'tjqktjTable-ds': tjqktjTableDs,
      'pbtsjhTable2023-ds': pbtsjhTableDs2023,
      'wcqktjTable2023-ds': wcqktjTableDs2023,
      'tjqktjTable2023-ds': tjqktjTableDs2023,
      'pbtsjhTable2023-sz': pbtsjhTableSz2023,
      'wcqktjTable2023-sz': wcqktjTableSz2023,
      'tjqktjTable2023-sz': tjqktjTableSz2023,
      'wcqktjTable2023-sg': wcqktjTableSg2023,
      'tjqktjTable2023-sg': tjqktjTableSg2023,
      'pbtsjhTable2023-sg': pbtsjhTableSg2023,
      // 地市年初
      'pbtsjhTable2024-ds':pbtsjhTableDs2024,
      'pbtsjhTable2024-sz':pbtsjhTableSz2024,
      'pbtsjhTable2024-sg':pbtsjhTableSg2024
    },
    data() {
      return {
        title: '信息填报详情',
        winHeight:550,
        visible: false,
        loading: false,

        infoData:[],
        //行数记录器，记录各种行数
        hzColumn:{
          dwdzColumn : 1,//党委党组行数
          zzrsbmColumn : 1,//组织人事部门行数
          fxcbColumn : 1,//发现储备行数
          pydlColumn : 1,//培养锻炼行数
          gljdColumn : 1,//管理监督行数
          jlzbColumn : 1,//记录激励指标行数
          zrlsqkColumn : 2,//责任落实情况行数
          fxpyqkColumn : 3,//发现培养情况行数
          jczbColumn : 6,//记录基础指标行数
          jlzbColumn1:1,//基础指标行数
          jlzbColumn2:1,//基础上传按钮指标行数
        },
       /* hzColumn:{},*/
        //各
        sorts:{
          dwdzSort:1,
          zzrsbmSort:1,
          fxcbSort:1,
          pydlSort:1,
          gljdSort:1,
          jlzbSort:1,
        },
        // sorts : {},
        checkData:null,
        fileServerPath: webapp.GHB_URL+'/evaluation/excel/fileUpload',
        scores:{
          hjzf : 0,//合计总分
          scoreZp1 : 0,
          scoreZp2 : 0,
          scoreZp3 : 0,
          scoreZp4 : 0,
        },
        userInfo : JSON.parse(sessionStorage.getItem(`userInfo`)),
        task:{},
        node:{},
        taskId : '',
        shztGhb : '',
        userNameNo : '',
        role:'',
        assessYear:'',
        s:{
          s1:'',
          s2:'',
          s3:'',
          s4:'',
        },
        orgType:'',
        list1:{},
        list2:{},
        list3:{},
      }
    },
    watch : {
      infoData: {
        handler: function() {
          let fxjfSum1 = 0;
          let fxjfSum2 = 0;
          let fxjfSum3 = 0;
          this.infoData.forEach(item =>{
            if(item.pgbzId == '1' || item.pgbzId == '2' ){
              fxjfSum1  += Number(item.fxjf);
            }
            if(item.pgbzId == '3' || item.pgbzId == '4' || item.pgbzId == '5'){
              fxjfSum2  += Number(item.fxjf);
            }
            if(item.pgbzId == '7'){
              fxjfSum3  += Number(item.fxjf);
            }
          })
          this.infoData[0].zpfz = (30 - fxjfSum1).toFixed(2);
          this.infoData[this.hzColumn.zrlsqkColumn].zpfz = (30 - fxjfSum2).toFixed(2);
          this.infoData[this.hzColumn.zrlsqkColumn + this.hzColumn.fxpyqkColumn + 1].zpfz = (0 + fxjfSum3).toFixed(2);
          // this.scores.hjzf = 100 - fxjfSum1 - fxjfSum2 - fxjfSum3;
        },
        deep: true
      },
      s: {
        handler: function() {
          let shfzSum1 = 0;
          let shfzSum2 = 0;
          let shfzSum3 = 0;
          let shfzSum4 = 0;
              if(this.s.s1 && this.s.s1 !=''){
                shfzSum1  = Number(this.s.s1);
              }
              if(this.s.s2 && this.s.s2 !=''){
                shfzSum2  = Number(this.s.s2);
              }
              if(this.s.s3 && this.s.s3 !=''){
                shfzSum3  = Number(this.s.s3);
              }
              if(this.s.s4 && this.s.s4 !=''){
                shfzSum4  = Number(this.s.s4);
              }
          this.scores.hjzf = (shfzSum1 + shfzSum2 + shfzSum3 + shfzSum4).toFixed(2);
        },
        deep: true
      }
    },
    mounted() {

    },
    methods: {
      //数据初始化
      async initShow(role,node,year) {
        this.node = node;
        this.task = {};
        this.assessYear = year;
        this.role = role;
        this.visible = true;
        this.loading = true;
        const params = {
          "dwBianma" : node.jgid,
          "dw" : node.name,
          "assessYear": year
        };
        if(year === "2022" || year === "2023"){
          getFillingData(params).then(result => {
          console.log(result,'result')
          this.$nextTick(() => {
            setTimeout(()=>{
              this.winHeight = window.innerHeight - 180;
            },100)
          })
          this.fillingData(result);
          this.loading = false;
          console.log(this.infoData)
        }).catch(err => {
          this.loading = false;
          this.$message({
            message: '系统错误，请重新登录再试。',
            type: 'warning'
          });
        })
        }else if(year === "2024"){
          getFillingData2024(params).then(result => {
          console.log(result,'result')
          this.$nextTick(() => {
            setTimeout(()=>{
              this.winHeight = window.innerHeight - 180;
            },100)
          })
          this.fillingData(result);
          if(result.resultdata.jlzbFile){
            this.jlzbFile = result.resultdata.jlzbFile;
            // newFileList = {};
            result.resultdata.jlzbFile.forEach((item)=>{
              if(item.fileType === 'tscx'){
                this.list1 = item
              }
              if(item.fileType === 'ndgbtz_pdf'){
                this.list3 = item
              }
              if(item.fileType === 'ndgbtz_execl'){
                this.list2 = item
              }
            })
          }
          this.loading = false;
          console.log(this.infoData)
        }).catch(err => {
          this.loading = false;
          this.$message({
            message: '系统错误，请重新登录再试。',
            type: 'warning'
          });
        })
        }
      },
      fillingData(result){
        if(result.resultdata.hzColumn){
          this.hzColumn = result.resultdata.hzColumn;
        }
        if(result.resultdata.sorts){
          this.sorts = result.resultdata.sorts;
        }
        if(result.resultdata.infoData){
          this.infoData = result.resultdata.infoData;
          this.taskId = result.resultdata.task.id;
          this.task = result.resultdata.task;
          this.shztGhb = result.resultdata.task.shztGhb;
          this.userNameNo = result.resultdata.task.userNameNo;
          if (this.role == '系统管理员') {
            this.infoData.push({
              "id" : "",
              "zbxm" : "特殊情况说明",
              "pgnr" : "特殊情况说明",
              "pgbz" : "特殊情况说明",
              "fileId" : [],
              "fileMc" : result.resultdata.task.fileMc,
              "fileUrl" : result.resultdata.task.fileUrl,
              "columnType" : "3",//表格类型，1-填报，2-新增按钮
              "tsqksm" : result.resultdata.task.tsqk,//特殊情况说明
              "taskId" : result.resultdata.task.id,//任务id
              "pgbzId" : "999",//评估标准id
            },{
              "id" : "",
              "zbxm" : "合计总分",
              "hjzf" : "",
              "columnType" : "3",//表格类型，1-填报，2-新增按钮
              "taskId" : result.resultdata.task.id,//任务id
              "pgbzId" : "9999",//评估标准id
            })
          }else {
            this.infoData.push({
              "id" : "",
              "zbxm" : "特殊情况说明",
              "pgnr" : "特殊情况说明",
              "pgbz" : "特殊情况说明",
              "fileId" : [],
              "fileMc" : result.resultdata.task.fileMc,
              "fileUrl" : result.resultdata.task.fileUrl,
              "columnType" : "3",//表格类型，1-填报，2-新增按钮
              "tsqksm" : result.resultdata.task.tsqk,//特殊情况说明
              "taskId" : result.resultdata.task.id,//任务id
              "pgbzId" : "999",//评估标准id
            })
          }
        }
        //分数
        if(result.resultdata.score){
          if(result.resultdata.score.scoreZp1 && result.resultdata.score.scoreZp1 != ""){
            this.infoData[0].zpfz = result.resultdata.score.scoreZp1;
          }else{
            this.infoData[0].zpfz = 30;
          }
          if(result.resultdata.score.scoreZp2 && result.resultdata.score.scoreZp2 != ""){
            this.infoData[this.hzColumn.zrlsqkColumn].zpfz = result.resultdata.score.scoreZp2;
          }else{
            this.infoData[this.hzColumn.zrlsqkColumn].zpfz = 30;
          }
          if(result.resultdata.score.scoreZp4 && result.resultdata.score.scoreZp4 != ""){
            this.infoData[this.hzColumn.zrlsqkColumn + this.hzColumn.fxpyqkColumn + 1].zpfz = result.resultdata.score.scoreZp4;
          }else{
            this.infoData[this.hzColumn.zrlsqkColumn + this.hzColumn.fxpyqkColumn + 1].zpfz = 10;
          }
          if(result.resultdata.score.scoreZp3 && result.resultdata.score.scoreZp3 != ""){
            this.infoData[this.hzColumn.zrlsqkColumn + this.hzColumn.fxpyqkColumn ].zpfz = result.resultdata.score.scoreZp3;
          }else{
            this.infoData[this.hzColumn.zrlsqkColumn + this.hzColumn.fxpyqkColumn ].zpfz = 30;
          }
//审核分值
          this.s.s1 = '';
          this.s.s2 = '';
          this.s.s3 = '';
          this.s.s4 = '';
          if(result.resultdata.score.scoreSh1 && result.resultdata.score.scoreSh1 != ""){
            // this.infoData[0].shfz = result.resultdata.score.scoreSh1;
            this.s.s1 = result.resultdata.score.scoreSh1
          }
          if(result.resultdata.score.scoreSh2 && result.resultdata.score.scoreSh2 != ""){
            // this.infoData[this.hzColumn.zrlsqkColumn].shfz = result.resultdata.score.scoreSh2;
            this.s.s2 = result.resultdata.score.scoreSh2
          }
          if(result.resultdata.score.scoreSh4 && result.resultdata.score.scoreSh4 != ""){
            // this.infoData[this.hzColumn.zrlsqkColumn + this.hzColumn.fxpyqkColumn + 1].shfz = result.resultdata.score.scoreSh4;
            this.s.s4 = result.resultdata.score.scoreSh4
          }
          if(result.resultdata.score.scoreSh3 && result.resultdata.score.scoreSh3 != ""){
            // this.infoData[this.hzColumn.zrlsqkColumn + this.hzColumn.fxpyqkColumn ].shfz = result.resultdata.score.scoreSh3;
            this.s.s3 = result.resultdata.score.scoreSh3
          }
        }
      },
      //初始化table，合并单元格函数
      arraySpanMethod({ row, column, rowIndex, columnIndex }) {
        if(this.assessYear === "2024"){
          if(columnIndex === 0){
            if (rowIndex === 0) {
              return {rowspan:this.hzColumn.jczbColumn,colspan:1}
            }else if (rowIndex === this.hzColumn.jczbColumn) {
              return {rowspan:this.hzColumn.jlzbColumn,colspan:1}
            }else if (rowIndex === (this.hzColumn.jczbColumn + this.hzColumn.jlzbColumn)) {
              return {rowspan:1,colspan:2}
            }else if (rowIndex === (this.hzColumn.jczbColumn + this.hzColumn.jlzbColumn + 1)) {
              return {rowspan:1,colspan:3}
            }else{
              return {rowspan:0,colspan:0}
            }
          }else if(columnIndex === 1){
            if(rowIndex === 0){
              return {rowspan:this.hzColumn.zrlsqkColumn,colspan:1}
            }else if(rowIndex === this.hzColumn.zrlsqkColumn){
              return {rowspan:this.hzColumn.fxpyqkColumn,colspan:1}
            }else if(rowIndex === (this.hzColumn.zrlsqkColumn + this.hzColumn.fxpyqkColumn)){
              return {rowspan:1,colspan:1}
            }else if(rowIndex === (this.hzColumn.zrlsqkColumn + this.hzColumn.fxpyqkColumn + 1)){ 
              return {rowspan:this.hzColumn.jlzbColumn1 + this.hzColumn.jlzbColumn2 ,colspan:1}
            }else if(rowIndex === (this.hzColumn.jczbColumn + this.hzColumn.jlzbColumn1 + this.hzColumn.jlzbColumn2)){
              return {rowspan:1,colspan:1}
            }else{
              return {rowspan:0,colspan:0}
            }
          }else if(columnIndex === 2){
          if(rowIndex === 0){
            return {rowspan:this.hzColumn.dwdzColumn,colspan:1}
          }else if(rowIndex === this.hzColumn.dwdzColumn){
            return {rowspan:this.hzColumn.zzrsbmColumn,colspan:1}
          }else if(rowIndex === (this.hzColumn.dwdzColumn + this.hzColumn.zzrsbmColumn)){
            return {rowspan:this.hzColumn.fxcbColumn,colspan:1}
          }else if(rowIndex === (this.hzColumn.dwdzColumn + this.hzColumn.zzrsbmColumn + this.hzColumn.fxcbColumn)){
            return {rowspan:this.hzColumn.pydlColumn,colspan:1}
          }else if(rowIndex === (this.hzColumn.dwdzColumn + this.hzColumn.zzrsbmColumn + this.hzColumn.fxcbColumn
            + this.hzColumn.pydlColumn)){
            return {rowspan:this.hzColumn.gljdColumn,colspan:1}
          }else if(rowIndex === (this.hzColumn.dwdzColumn + this.hzColumn.zzrsbmColumn +
            this.hzColumn.fxcbColumn + this.hzColumn.pydlColumn + this.hzColumn.gljdColumn)){
            return {rowspan:1,colspan:1}
          }
          else if(rowIndex === this.hzColumn.jczbColumn ){
            return {rowspan:this.hzColumn.jlzbColumn1 + this.hzColumn.jlzbColumn2,colspan:1}
          }
          // 新增的合并
          else if(rowIndex === (this.hzColumn.jczbColumn + this.hzColumn.jlzbColumn1 + this.hzColumn.jlzbColumn2 )){
            return {rowspan:1,colspan:1}
            // 新增的合并
          }else if(rowIndex === (this.hzColumn.jczbColumn + this.hzColumn.jlzbColumn )){
            return {rowspan:1,colspan:6}
          }else{
            return {rowspan:0,colspan:0}
          }
          }else if(columnIndex === 3){
            if(row.columnType === "2"){
              return {rowspan:1,colspan:3}
            }else if(row.columnType === "4" && row.pgbzId === '9'){
              return {rowspan:1,colspan:3}
            }else if(row.columnType === "3"){
                if(row.pgbzId != '9999'){
                  return {rowspan:0,colspan:0}
                }else{
                  return {rowspan:1,colspan:5}
                }
              }else{
                return {rowspan:1,colspan:1}
              }
            }else if(columnIndex === 4){
              if(row.columnType === "2"){
                return {rowspan:0,colspan:0}
              }else if(row.columnType === "3"){
                return {rowspan:0,colspan:0}
              }else{
                return {rowspan:1,colspan:1}
              }
            }else if(columnIndex === 5){
              if(row.columnType === "2"){
                return {rowspan:0,colspan:0}
              }else if(row.columnType === "3"){
                return {rowspan:0,colspan:0}
              }else{
                return {rowspan:1,colspan:1}
              }
            }else if(columnIndex === 6){
              if(row.columnType === "3"){
                return {rowspan:0,colspan:0}
              }
            }else if (columnIndex === 7){
              if(row.columnType === "3"){
                return {rowspan:0,colspan:0}
              }
            }else if(columnIndex === 8){
              if(row.columnType === "3"){
                return {rowspan:1,colspan:2}
              }else{
                if(rowIndex === 0){
                  return {rowspan:this.hzColumn.zrlsqkColumn,colspan:1}
                }else if(rowIndex == this.hzColumn.zrlsqkColumn){
                  return {rowspan:this.hzColumn.fxpyqkColumn,colspan:1}
                }else if(rowIndex == (this.hzColumn.zrlsqkColumn + this.hzColumn.fxpyqkColumn + 1)){
                  return {rowspan:this.hzColumn.jlzbColumn,colspan:1}
                }else{
                  return {rowspan:1,colspan:1}
                }
              }
            }else if(columnIndex === 9){
            if(row.columnType === "3"){
              return {rowspan:0,colspan:0}
            }else{
              if(rowIndex === 0){
                return {rowspan:this.hzColumn.zrlsqkColumn,colspan:1}
              }else if(rowIndex == this.hzColumn.zrlsqkColumn){
                return {rowspan:this.hzColumn.fxpyqkColumn,colspan:1}
              }else if(rowIndex == (this.hzColumn.zrlsqkColumn + this.hzColumn.fxpyqkColumn + 1)){
                return {rowspan:this.hzColumn.jlzbColumn,colspan:1}
              }else{
                return {rowspan:1,colspan:1}
              }
            }
          }
        }else if(this.assessYear === "2022" || this.assessYear === "2023"){
          if(columnIndex === 0){
            if (rowIndex === 0) {
              return {rowspan:this.hzColumn.jczbColumn,colspan:1}
            }else if (rowIndex === this.hzColumn.jczbColumn) {
              return {rowspan:this.hzColumn.jlzbColumn,colspan:2}
            }else if (rowIndex === (this.hzColumn.jczbColumn + this.hzColumn.jlzbColumn)) {
              return {rowspan:1,colspan:2}
            }else if (rowIndex === (this.hzColumn.jczbColumn + this.hzColumn.jlzbColumn + 1)) {
              return {rowspan:1,colspan:3}
            }else{
              return {rowspan:0,colspan:0}
            }
          }else if(columnIndex === 1){
            if(rowIndex === 0){
              return {rowspan:this.hzColumn.zrlsqkColumn,colspan:1}
            }else if(rowIndex === this.hzColumn.zrlsqkColumn){
              return {rowspan:this.hzColumn.fxpyqkColumn,colspan:1}
            }else if(rowIndex === (this.hzColumn.zrlsqkColumn + this.hzColumn.fxpyqkColumn)){
              return {rowspan:1,colspan:1}
            }else{
              return {rowspan:0,colspan:0}
            }
          }else if(columnIndex === 2){
            if(rowIndex === 0){
              return {rowspan:this.hzColumn.dwdzColumn,colspan:1}
            }else if(rowIndex === this.hzColumn.dwdzColumn){
              return {rowspan:this.hzColumn.zzrsbmColumn,colspan:1}
            }else if(rowIndex === (this.hzColumn.dwdzColumn + this.hzColumn.zzrsbmColumn)){
              return {rowspan:this.hzColumn.fxcbColumn,colspan:1}
            }else if(rowIndex === (this.hzColumn.dwdzColumn + this.hzColumn.zzrsbmColumn + this.hzColumn.fxcbColumn)){
              return {rowspan:this.hzColumn.pydlColumn,colspan:1}
            }else if(rowIndex === (this.hzColumn.dwdzColumn + this.hzColumn.zzrsbmColumn + this.hzColumn.fxcbColumn
              + this.hzColumn.pydlColumn)){
              return {rowspan:this.hzColumn.gljdColumn,colspan:1}
            }else if(rowIndex === (this.hzColumn.dwdzColumn + this.hzColumn.zzrsbmColumn +
              this.hzColumn.fxcbColumn + this.hzColumn.pydlColumn + this.hzColumn.gljdColumn)){
              return {rowspan:1,colspan:1}
            }else if (rowIndex === (this.hzColumn.dwdzColumn + this.hzColumn.zzrsbmColumn +
              this.hzColumn.fxcbColumn + this.hzColumn.pydlColumn + this.hzColumn.gljdColumn + 1)){
              return {rowspan:this.hzColumn.jlzbColumn,colspan:1}
            }else if(rowIndex === (this.hzColumn.dwdzColumn + this.hzColumn.zzrsbmColumn +
              this.hzColumn.fxcbColumn + this.hzColumn.pydlColumn + this.hzColumn.gljdColumn
              + this.hzColumn.jlzbColumn + 1)){
              return {rowspan:1,colspan:6}
            }else{
              return {rowspan:0,colspan:0}
            }
          }else if(columnIndex === 3){
            if(row.columnType === "2"){
              return {rowspan:1,colspan:3}
            }else if(row.columnType === "3"){
              if(row.pgbzId != '9999'){
                return {rowspan:0,colspan:0}
              }else{
                return {rowspan:1,colspan:5}
              }
            }else{
              return {rowspan:1,colspan:1}
            }
          }else if(columnIndex === 4){
            if(row.columnType === "2"){
              return {rowspan:0,colspan:0}
            }else if(row.columnType === "3"){
              return {rowspan:0,colspan:0}
            }else{
              return {rowspan:1,colspan:1}
            }
          }else if(columnIndex === 5){
            if(row.columnType === "2"){
              return {rowspan:0,colspan:0}
            }else if(row.columnType === "3"){
              return {rowspan:0,colspan:0}
            }else{
              return {rowspan:1,colspan:1}
            }
          }else if(columnIndex === 6){
            if(row.columnType === "3"){
              return {rowspan:0,colspan:0}
            }
          }else if (columnIndex === 7){
            if(row.columnType === "3"){
              return {rowspan:0,colspan:0}
            }
          }else if(columnIndex === 8){
            if(row.columnType === "3"){
              return {rowspan:1,colspan:2}
            }else{
              if(rowIndex === 0){
                return {rowspan:this.hzColumn.zrlsqkColumn,colspan:1}
              }else if(rowIndex == this.hzColumn.zrlsqkColumn){
                return {rowspan:this.hzColumn.fxpyqkColumn,colspan:1}
              }else if(rowIndex == (this.hzColumn.zrlsqkColumn + this.hzColumn.fxpyqkColumn + 1)){
                return {rowspan:this.hzColumn.jlzbColumn,colspan:1}
              }else{
                return {rowspan:1,colspan:1}
              }
            }
          }else if(columnIndex === 9){
            if(row.columnType === "3"){
              return {rowspan:0,colspan:0}
            }else{
              if(rowIndex === 0){
                return {rowspan:this.hzColumn.zrlsqkColumn,colspan:1}
              }else if(rowIndex == this.hzColumn.zrlsqkColumn){
                return {rowspan:this.hzColumn.fxpyqkColumn,colspan:1}
              }else if(rowIndex == (this.hzColumn.zrlsqkColumn + this.hzColumn.fxpyqkColumn + 1)){
                return {rowspan:this.hzColumn.jlzbColumn,colspan:1}
              }else{
                return {rowspan:1,colspan:1}
              }
            }
          }
        }
      },
      cellClassName({ row,columnIndex}){
        if(row.zbxm && columnIndex == 0){
          if(row.pgbzId != "9999"){
            return 'col-mode'
          }else{
            return 'col-textOrg'
          }

        }
        if(row.zbxm && columnIndex == 1){
          return 'col-writing'
        }
      },
      //单元格样式回调函数
      cellStyle(row, column, rowIndex, columnIndex){

      },
      //结果汇总
      updateResults(){
        console.log(this.userInfo,'this.userInfo')
        this.$confirm('<strong style="color: red">请检查各项审核分值填报完整?审核完成后将不可修改!</strong>', '提示', {
          dangerouslyUseHTMLString: true,
          confirmButtonText: '确定',
          cancelButtonText: '取消',
          type: 'warning'
        }).then(() => {
          this.loading = true;
          const scort = {
            "scoreSh1" : this.s.s1,
            "scoreSh2" : this.s.s2,
            "scoreSh3" : this.s.s3,
            "scoreSh4" : this.s.s4,
            "taskId" : this.taskId
          };
          const params = {
            "scorts": scort,
            'orgId':this.node.jgid,
            "userInfo" : this.userInfo,
            "hjzf" : this.scores.hjzf,
            "taskId" : this.taskId,
            "task":this.task,
            'assessYear':this.assessYear
          };
          updateResults(params).then(result => {
            if(result.result){
              this.loading = false;
              this.visible = false;
              this.$emit('auditInitData')
              this.$message({
                type: 'success',
                message: '汇总成功!'
              });
            }else {
              this.loading = false;
              this.$message({
                type: 'warning',
                message: '汇总失败!'
              });
              console.log(result.message,'汇总失败')
            }
          }).catch(err => {
            this.$message({
              message: '系统错误，请重新登录再试。',
              type: 'warning'
            });
          })
        }).catch(() => {
          this.$message({
            type: 'info',
            message: '已取消汇总!'
          });
        });

      },
      //审核操作
      auditTypeClick( type,label,row) {
        this.$confirm('是否'+label+'?', '操作提示', {
          confirmButtonText: '确定',
          cancelButtonText: '取消',
          type: 'warning'
        }).then(() => {
          const params = {
            "userInfo": this.userInfo,
            "taskId": this.taskId,
            "dw":this.task.dw,
            "id": row.id,
            "shzt":type,
          };
          this.loading = true;
          auditTypeClick(params).then(result => {
            if (result.result) {
              row.shzt = type
              this.initShow(this.role,this.node,this.assessYear)
              this.$emit('auditInitData',this.assessYear)
              this.loading = false;
              this.$message({
                type: 'success',
                message: label+'!'
              });
            }else {
              this.loading = false;
              this.$message({
                type: 'warning',
                message: '操作失败!'
              });
              console.log(result.message,'操作失败')
            }
          })
        }).catch(() => {
          this.$message({
            type: 'info',
            message: '已取消操作!'
          });
        });
      },
      //文件预览
      showFile(fileurl) {
        this.$nextTick(() => {
          this.$refs.dialogarchiveFile.initShow(fileurl)
        })
      },
      downFile(data, fileName) {
        if (!data) {
          return;
        }
        // 如果data是字符串并且看起来像一个URL，则直接构建a标签下载
        if (typeof data === "string" && data.startsWith("http")) {
          const a = document.createElement("a");
          a.style.display = "none";
          a.href = data;
          a.setAttribute("download", fileName);
          document.body.appendChild(a);
          a.click();
          document.body.removeChild(a);
        } else {
          // 对于Blob数据，保留原来的处理逻辑
          const url = window.URL.createObjectURL(new Blob([data]));
          const a = document.createElement("a");
          a.style.display = "none";
          a.href = url;
          a.setAttribute("download", fileName);
          document.body.appendChild(a);
          a.click();
          document.body.removeChild(a);
          window.URL.revokeObjectURL(url);
        }
      },
      showExeclFile(fileurl) {
        this.downFile(fileurl, "上传年度干部选拔表格名单");
      },
      //点击配备提升计划表
      showPbtsjh(shztGHB,type){
        if (this.assessYear == '2022') {
          this.$nextTick(() => {
            if (this.task.dwBianma) {
              if (Number(this.task.dwBianma) < 150000) {
                this.$refs.dialogpbtsjhTableSz.initShow(this.task, this.role, shztGHB, type)
              } else {
                this.$refs.dialogpbtsjhTableDs.initShow(this.task, this.role, shztGHB, type)
              }
            } else {
              this.$message({
                message: '用户数据丢失，请重新登录！',
                type: 'warning'
              });
            }
          })
        } else if (this.assessYear == '2023') {
          this.$nextTick(() => {
            if (this.userNameNo){
              if(this.userNameNo.indexOf("sz_") > -1){
                this.$refs.dialogpbtsjhTableSz2023.initShow(this.task,this.role,shztGHB,type)
              }else if (this.userNameNo.indexOf("sg_") > -1 || this.userNameNo.indexOf("ss_") > -1) {
                this.$refs.dialogpbtsjhTableSg2023.initShow(this.task,this.role,shztGHB,type)
              }else {
                this.$refs.dialogpbtsjhTableDs2023.initShow(this.task,this.role,shztGHB,type)
              }
            }else{
              this.$message({
                message: '用户数据丢失，请重新登录！',
                type: 'warning'
              });
            }
          });
        }else if(this.assessYear == '2024'){
        this.$nextTick(() => {
          if (this.userNameNo){
            if(this.userNameNo.indexOf("sz_") > -1){
              this.$refs.dialogpbtsjhTableSz2024.initShow(this.task,this.role,shztGHB,type)
            }else if (this.userNameNo.indexOf("sg_") > -1 || this.userNameNo.indexOf("ss_") > -1) {
              this.$refs.dialogpbtsjhTableSg2024.initShow(this.task,this.role,shztGHB,type)
            }else {
              this.$refs.dialogpbtsjhTableDs2024.initShow(this.task,this.role,shztGHB,type)
            }
          }else{
            this.$message({
              message: '用户数据丢失，请重新登录！',
              type: 'warning'
            });
          }
        }); 
      }
      },
      //点击完成情况统计表
      showWcqktj(shztGHB,type){
        if(this.assessYear == '2022'){
          this.$nextTick(() => {
            if (this.task.dwBianma){
              if(Number(this.task.dwBianma)  < 150000){
                this.$refs.dialogwcqktjTableSz.initShow(this.task,this.role,shztGHB,type)
              }else {
                this.$refs.dialogwcqktjTableDs.initShow(this.task,this.role,shztGHB,type)
              }
            }else{
              this.$message({
                message: '用户数据丢失，请重新登录！',
                type: 'warning'
              });
            }
          })
        }else if (this.assessYear == '2023'){
          this.$nextTick(() => {
            if (this.userNameNo){
              if(this.userNameNo.indexOf("sz_") > -1){
                this.$refs.dialogwcqktjTableSz2023.initShow(this.task,this.role,shztGHB,type)
              }else if (this.userNameNo.indexOf("sg_") > -1 || this.userNameNo.indexOf("ss_") > -1) {
                this.$refs.dialogwcqktjTableSg2023.initShow(this.task,this.role,shztGHB,type)
              }else {
                this.$refs.dialogwcqktjTableDs2023.initShow(this.task,this.role,shztGHB,type)
              }
            }else{
              this.$message({
                message: '用户数据丢失，请重新登录！',
                type: 'warning'
              });
            }
          });
        }
      },
      //点击推进情况统计表
      showTjqktj(shztGHB,type){
        if (this.assessYear == '2022') {
          this.$nextTick(() => {
            if (this.task.dwBianma) {
              if (Number(this.task.dwBianma) < 150000) {
                this.$refs.dialogtjqktjTableSz.initShow(this.task, this.role, shztGHB, type)
              } else {
                this.$refs.dialogtjqktjTableDs.initShow(this.task, this.role, shztGHB, type)
              }
            } else {
              this.$message({
                message: '用户数据丢失，请重新登录！',
                type: 'warning'
              });
            }
          })
        } else if (this.assessYear == '2023') {
          this.$nextTick(() => {
            if (this.userNameNo) {
              if (this.userNameNo.indexOf("sz_") > -1) {
                this.$refs.dialogtjqktjTableSz2023.initShow(this.task, this.role, shztGHB, type)
              } else if (this.userNameNo.indexOf("sg_") > -1 || this.userNameNo.indexOf("ss_") > -1) {
                this.$refs.dialogtjqktjTableSg2023.initShow(this.task, this.role, shztGHB, type)
              } else {
                this.$refs.dialogtjqktjTableDs2023.initShow(this.task, this.role, shztGHB, type)
              }
            } else {
              this.$message({
                message: '用户数据丢失，请重新登录！',
                type: 'warning'
              });
            }
          });
        }
      },
      //选中操作
      handleCurrentChange(val) {
        this.checkData = val.row;
      },
        //下载
        downZip(){
          if(this.assessYear === "2022" || this.assessYear === "2023"){
            const month= new Date().getMonth() + 1;
            const params = {
                taskId: this.taskId,
                assessYear:this.assessYear,
                userNameNo : this.task.userNameNo,
                dwBianma : this.task.dwBianma,
                dw : this.task.dw,
                fileName:this.task.dw+"年轻干部工作督导评估量化赋分表(" +
                    new Date().getFullYear() +"年"+month+ "月).zip"
            }
            this.$confirm('是否下载?', '提示', {
                confirmButtonText: '确定',
                cancelButtonText: '取消',
                type: 'warning'
            }).then(() => {
                this.pageLoading = true;
                downExecl(params).then(result => {
                    this.pageLoading = false;
                    // this.$alert('成功')
                })
            })
          }else if(this.assessYear === "2024"){
            const month= new Date().getMonth() + 1;
            const params = {
                taskId: this.taskId,
                assessYear:this.assessYear,
                userNameNo : this.task.userNameNo,
                dwBianma : this.task.dwBianma,
                dw : this.task.dw,
                fileName:this.task.dw+"年轻干部工作督导评估量化赋分表(" +
                    new Date().getFullYear() +"年"+month+ "月).zip"
            }
            this.$confirm('是否下载?', '提示', {
                confirmButtonText: '确定',
                cancelButtonText: '取消',
                type: 'warning'
            }).then(() => {
                this.pageLoading = true;
                downExecl2024(params).then(result => {
                    this.pageLoading = false;
                    // this.$alert('成功')
                })
            })
          }
        },
    }
  }
</script>

<style scoped>
  >>>.el-dialog{
    height:calc(100% - 10%);
  }
  >>>.el-textarea.is-disabled .el-textarea__inner{
    color: #606266;
  }
  >>>.el-input.is-disabled .el-input__inner{
    color: #606266;
  }
  >>>.vxe-table--render-default .vxe-cell {
    white-space: pre-line;
    word-break: break-all;
    padding-left: 10px;
    padding-right: 10px;
}
  >>>.vxe-table .vxe-body--row .vxe-body--column.col-mode .vxe-cell span{
    writing-mode: vertical-lr;
    text-orientation: upright;
    text-align:center;
    font-size:18px;
    font-weight:900;
  }
  >>>.vxe-table .vxe-body--row .vxe-body--column.col-writing .vxe-cell span{
    writing-mode: vertical-lr;
    text-orientation: upright;
    text-align:center;
    font-size:16px;
    font-weight:900;
  }
  >>>.vxe-table .vxe-body--row .vxe-body--column.col-textOrg .vxe-cell span{
    text-align:center;
    font-size:18px;
    font-weight:900;
  }
</style>
